//
//  Constants.h
//  VideoDemo
//
//  Created by wangxue on 16/9/23.
//  Copyright © 2016年 dfl. All rights reserved.
//

#ifndef Constants_h
#define Constants_h

#define MAS_SHORTHAND_GLOBALS
#import "Masonry.h"
#define kAppDelegate  ((AppDelegate *)[UIApplication sharedApplication].delegate)
#define IOS_VERSION_8_OR_ABOVE (([[[UIDevice currentDevice] systemVersion] floatValue] >= 8.0)? (YES):(NO))

#define dispatch_main_async_safe(block)\
if ([NSThread isMainThread]) {\
block();\
} else {\
dispatch_async(dispatch_get_main_queue(), block);\
}

#define kWIDTH [UIScreen mainScreen].bounds.size.width
#define KHIGHT [UIScreen mainScreen].bounds.size.height
#define Wk(weakSelf)  __block __weak __typeof(&*self)weakSelf = self;

#import "GPUImage.h"
#import "GPUImageBeautifyFilter.h"
#import  <AssetsLibrary/ALAssetsLibrary.h>
#import <Photos/Photos.h>
#import "ALAssetsLibrary+CustomPhotoAlbum.h"
#import "UIImage+UIImageScale.h"

#endif /* Constants_h */
